package com.ark.cloud.dataservices.modules.sys.entity.vo;

import com.ark.cloud.dataservices.common.web.entity.vo.BaseVo;
import com.ark.cloud.dataservices.modules.sys.entity.po.User;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.Date;
import java.util.Set;

@Data
@NoArgsConstructor
public class UserVo extends BaseVo<User> {

    public UserVo(User user) {
        BeanUtils.copyProperties(user, this);
    }

    private String name;
    private String mobile;
    private String password;
    private String phone;
    private String email;
    private String customerName;
    private String serviceName;
    private String username;
    private String openid;
    private String roleName;
    private String roleCode;
    private String postName;
    private String description;
    private String deleted;
    private Boolean enabled;
    private Boolean accountNonExpired;
    private Boolean credentialsNonExpired;
    private Boolean accountNonLocked;
    private Set<String> roleIds;
    private Set<String> groupIds;
    private Set<String> positionIds;
    private String createdBy;
    private String updatedBy;
    private Date createdTime;
    private Date updatedTime;
}
